//
//  CZQNavigationController.m
//  LoveBeer
//
//  Created by 崔正强 on 17/4/26.
//  Copyright © 2017年 崔正强. All rights reserved.
//

#import "CZQNavigationController.h"

@interface CZQNavigationController ()

@end

@implementation CZQNavigationController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.navigationItem.hidesBackButton = YES;
}

//隐藏tabbar
- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated{
    
    //设置返回按键
    viewController.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"" style:UIBarButtonItemStyleDone target:nil action:nil];
    
    if (self.viewControllers.count > 0) {
        viewController.hidesBottomBarWhenPushed = YES;
    }
    
    [super pushViewController:viewController animated:animated];
}


@end
